package com.example.math;

public class Exchange {

    public static void main(String[] args) {

        int a = 1;
        int b = 2;

        a ^= b;
        b ^= a;
        a ^= b;

        System.out.println("A: " + a + "; B: " + b);
    }
}
